<div class="topbar-wrap white">
    <div class="topbar-inner clearfix">
        <div class="topbar-logo-wrap clearfix">
            <h1 class="topbar-logo none"><a href="index.html" class="navbar-brand">后台管理</a></h1>
            <ul class="navbar-list clearfix">
                <li><a href="{:url('../index/Index/index')}">首页</a></li>
                <li><a href="{:url('Index/index')}" target="_blank" class="on" >后台</a></li>
            </ul>
        </div>
        <div class="top-info-wrap">
            <ul class="top-info-list clearfix">
            
                <li><a href="#">
                <?php 
                switch (session('user_type')){
                  case 0:
                    $username = '订阅用户';
                    break;
                  case 1:
                    $username = '投稿者';
                    break;
                  case 2:
                    $username = '系统作者';
                    break;
                  case 3:
                    $username = '系统编辑';
                    break;
                  case 4:
                    $username = '系统管理员';
                    break;
                  default:
                    $username = '未知身份';
                }
                echo (session('user_name')." | ".$username); ?>
                </a></li>
                <li><a href="{:url('User/edit',array('id'=>session('user_id')))}">修改密码</a></li>
                <li><a href="{:url('Login/logout')}">退出</a></li>
            </ul>
        </div>
    </div>
</div>